#include "dma.h"


void MX_DMA_Init(void)
{

  /* DMA controller clock enable */
  RCC->AHB1ENR|=RCC_AHB1ENR_DMA1EN;
  RCC->AHB1ENR|=RCC_AHB1ENR_DMA2EN;

  /* DMA interrupt init */
  
  HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 0, 0);
  HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn);

  HAL_NVIC_SetPriority(DMA1_Stream7_IRQn, 0, 0);
  HAL_NVIC_EnableIRQ(DMA1_Stream7_IRQn);

}


